/***************************************************************************
* Lyrics-Player                                                            *
* Copyright (C) 2012 Andrey Derevyanko <derandr@gmail.com>                 *
*                                                                          *
* This program is free software: you can redistribute it and/or modify     *
* it under the terms of the GNU General Public License as published by     *
* the Free Software Foundation, either version 3 of the License, or        *
* (at your option) any later version.                                      *
*                                                                          *
* This program is distributed in the hope that it will be useful,          *
* but WITHOUT ANY WARRANTY; without even the implied warranty of           *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            *
* GNU General Public License for more details.                             *
*                                                                          *
* You should have received a copy of the GNU General Public License        *
* along with this program.  If not, see <http://www.gnu.org/licenses/>.    *
***************************************************************************/

/*! \file playListView.h
 *  \brief Track list view type class definition
 *  \details Class is inherited from QTableView and redefines mouse events
 *  \author Andrey Derevyanko <derandr@gmail.com>
 *  \version 1.0
 *  \date 22/06/2012
 *  \copyright GNU Public License
 */

#ifndef PLAYLISTVIEW_H
#define PLAYLISTVIEW_H

#include <QTableView>
#include <QMouseEvent>

/*! \class playListView_t
 *  \brief Table view class for track list displaying
 */
class playListView_t : public QTableView
{
    Q_OBJECT
public:
    //! Constructor
    explicit playListView_t(QObject *parent = 0);

signals:
    /*! \fn void dbClick()
     *  \brief Signal emitted when mouse double clicked
     */
    void dbClick();

protected:
    /*! \fn void mouseDoubleClickEvent (QMouseEvent *event)
     *  \brief Mouse double clicked event. dbClick is emitted.
     *  \param event Pointer to mouse event
     */
    void mouseDoubleClickEvent (QMouseEvent *event);

};

#endif // PLAYLISTVIEW_H
